.class public Les/ff;
.super Ljava/lang/Object;
.source "ImageAnalyzer.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/ff$c;
    }
.end annotation


# static fields
.field private static final p:Ljava/lang/String; = "ff"


# instance fields
.field private final a:Les/yu;

.field private final b:[Les/nf;

.field private final c:Les/xe$f;

.field private d:Ljava/util/concurrent/ThreadPoolExecutor;

.field private volatile e:I

.field private volatile f:J

.field private final g:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/bg;",
            ">;"
        }
    .end annotation
.end field

.field private h:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/cg;",
            ">;"
        }
    .end annotation
.end field

.field private i:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation
.end field

.field private j:Ljava/util/concurrent/ConcurrentHashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/ConcurrentHashMap<",
            "Les/hg;",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation
.end field

.field private k:Ljava/util/concurrent/ConcurrentHashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/concurrent/ConcurrentHashMap<",
            "Lcom/estrongs/fs/g;",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;>;"
        }
    .end annotation
.end field

.field private final l:Ljava/lang/String;

.field private volatile m:Z

.field private n:Ljava/util/concurrent/CountDownLatch;

.field private final o:Ljava/util/Comparator;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Comparator<",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;>;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;Les/xe$f;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Les/ff$b;

    invoke-direct {v0, p0}, Les/ff$b;-><init>(Les/ff;)V

    iput-object v0, p0, Les/ff;->o:Ljava/util/Comparator;

    .line 3
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->v1(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->Q1(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    .line 4
    :cond_0
    iput-object p1, p0, Les/ff;->l:Ljava/lang/String;

    goto :goto_1

    :cond_1
    :goto_0
    const-string p1, "gallery://local/buckets/"

    .line 5
    iput-object p1, p0, Les/ff;->l:Ljava/lang/String;

    .line 6
    :goto_1
    iput-object p2, p0, Les/ff;->c:Les/xe$f;

    .line 7
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    iput-object p1, p0, Les/ff;->g:Ljava/util/List;

    .line 8
    new-instance p1, Les/yu;

    invoke-direct {p1}, Les/yu;-><init>()V

    iput-object p1, p0, Les/ff;->a:Les/yu;

    const/4 p1, 0x2

    new-array p1, p1, [Les/nf;

    .line 9
    iput-object p1, p0, Les/ff;->b:[Les/nf;

    const/4 p2, 0x1

    .line 10
    new-instance v0, Les/gf;

    invoke-direct {v0}, Les/gf;-><init>()V

    aput-object v0, p1, p2

    .line 11
    iget-object p1, p0, Les/ff;->b:[Les/nf;

    const/4 p2, 0x0

    new-instance v0, Les/rf;

    invoke-direct {v0}, Les/rf;-><init>()V

    aput-object v0, p1, p2

    return-void
.end method

.method static synthetic a(Les/ff;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Les/ff;->i()V

    return-void
.end method

.method static synthetic b(Les/ff;)Ljava/util/List;
    .locals 0

    .line 1
    iget-object p0, p0, Les/ff;->h:Ljava/util/List;

    return-object p0
.end method

.method static synthetic c(Les/ff;)I
    .locals 0

    .line 1
    iget p0, p0, Les/ff;->e:I

    return p0
.end method

.method static synthetic d(Les/ff;)Ljava/util/List;
    .locals 0

    .line 1
    iget-object p0, p0, Les/ff;->g:Ljava/util/List;

    return-object p0
.end method

.method private d(Ljava/lang/String;)Z
    .locals 1

    .line 17
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_0

    iget-object p1, p0, Les/ff;->l:Ljava/lang/String;

    const-string v0, "gallery://local/buckets/"

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method static synthetic e(Les/ff;)J
    .locals 2

    .line 1
    iget-wide v0, p0, Les/ff;->f:J

    return-wide v0
.end method

.method static synthetic e()Ljava/lang/String;
    .locals 1

    .line 2
    sget-object v0, Les/ff;->p:Ljava/lang/String;

    return-object v0
.end method

.method private f()V
    .locals 4

    .line 2
    iget-object v0, p0, Les/ff;->n:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V

    .line 3
    iget-object v0, p0, Les/ff;->c:Les/xe$f;

    if-eqz v0, :cond_0

    .line 4
    iget-object v1, p0, Les/ff;->l:Ljava/lang/String;

    const/4 v2, 0x5

    const/4 v3, 0x0

    invoke-interface {v0, v1, v2, v3}, Les/xe$f;->a(Ljava/lang/String;IZ)V

    .line 5
    iget-object v0, p0, Les/ff;->c:Les/xe$f;

    iget-object v1, p0, Les/ff;->l:Ljava/lang/String;

    const/4 v2, 0x4

    invoke-interface {v0, v1, v2, v3}, Les/xe$f;->a(Ljava/lang/String;IZ)V

    .line 6
    iget-object v0, p0, Les/ff;->c:Les/xe$f;

    iget-object v1, p0, Les/ff;->l:Ljava/lang/String;

    const/4 v2, 0x7

    invoke-interface {v0, v1, v2, v3}, Les/xe$f;->a(Ljava/lang/String;IZ)V

    .line 7
    :cond_0
    sget-object v0, Les/ff;->p:Ljava/lang/String;

    const-string v1, "\u56fe\u7247\u6587\u4ef6\u5206\u6790\u6b63\u5e38\u7ed3\u675f..."

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method static synthetic f(Les/ff;)[Les/nf;
    .locals 0

    .line 1
    iget-object p0, p0, Les/ff;->b:[Les/nf;

    return-object p0
.end method

.method public static g()Landroid/util/Pair;
    .locals 19
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Landroid/util/Pair<",
            "Ljava/lang/Integer;",
            "Ljava/lang/Long;",
            ">;"
        }
    .end annotation

    const-string v1, " @"

    const-string v2, "/"

    const-string v3, " ms @"

    const-string v4, " in DB!"

    const-string v5, "ImageAnalyzer"

    const/4 v0, 0x2

    new-array v8, v0, [Ljava/lang/String;

    const-string v0, "count(*)"

    const/4 v12, 0x0

    aput-object v0, v8, v12

    const-string v0, "sum(_size)"

    const/4 v13, 0x1

    aput-object v0, v8, v13

    .line 2
    sget-object v14, Landroid/provider/MediaStore$Images$Media;->EXTERNAL_CONTENT_URI:Landroid/net/Uri;

    .line 3
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v15

    const/16 v17, 0x0

    const-wide/16 v10, 0x0

    .line 4
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Application;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v6
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    const/4 v0, 0x0

    const/16 v18, 0x0

    const/4 v9, 0x0

    move-object v7, v14

    move-object v10, v0

    move-object/from16 v11, v18

    :try_start_1
    invoke-virtual/range {v6 .. v11}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v6
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_2

    if-eqz v6, :cond_0

    .line 5
    :try_start_2
    invoke-interface {v6}, Landroid/database/Cursor;->moveToFirst()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 6
    invoke-interface {v6, v12}, Landroid/database/Cursor;->getInt(I)I

    move-result v12

    .line 7
    invoke-interface {v6, v13}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v7
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    move-wide v10, v7

    goto :goto_0

    :catchall_0
    move-exception v0

    move-object/from16 v17, v6

    goto/16 :goto_3

    :catch_0
    move-exception v0

    move-object/from16 v17, v6

    goto :goto_1

    :cond_0
    const-wide/16 v10, 0x0

    .line 8
    :goto_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v7

    .line 9
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sub-long/2addr v7, v15

    invoke-virtual {v0, v7, v8}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v5, v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 10
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v12}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v10, v11}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v5, v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz v6, :cond_2

    .line 11
    invoke-interface {v6}, Landroid/database/Cursor;->close()V

    goto :goto_2

    :catchall_1
    move-exception v0

    move-wide v6, v10

    goto :goto_4

    :catch_1
    move-exception v0

    .line 12
    :goto_1
    :try_start_3
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_2

    .line 13
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v6

    .line 14
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sub-long/2addr v6, v15

    invoke-virtual {v0, v6, v7}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v5, v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 15
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v12}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-wide/16 v6, 0x0

    invoke-virtual {v0, v6, v7}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v5, v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz v17, :cond_1

    .line 16
    invoke-interface/range {v17 .. v17}, Landroid/database/Cursor;->close()V

    :cond_1
    move-wide v10, v6

    .line 17
    :cond_2
    :goto_2
    new-instance v0, Landroid/util/Pair;

    invoke-static {v12}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-static {v10, v11}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    return-object v0

    :catchall_2
    move-exception v0

    :goto_3
    const-wide/16 v6, 0x0

    .line 18
    :goto_4
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v8

    .line 19
    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    sub-long/2addr v8, v15

    invoke-virtual {v10, v8, v9}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v10, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v10, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v5, v3}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 20
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v12}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v6, v7}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v5, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz v17, :cond_3

    .line 21
    invoke-interface/range {v17 .. v17}, Landroid/database/Cursor;->close()V

    .line 22
    :cond_3
    throw v0
.end method

.method static synthetic g(Les/ff;)Ljava/util/concurrent/ThreadPoolExecutor;
    .locals 0

    .line 1
    iget-object p0, p0, Les/ff;->d:Ljava/util/concurrent/ThreadPoolExecutor;

    return-object p0
.end method

.method private h()Z
    .locals 3

    .line 2
    iget-boolean v0, p0, Les/ff;->m:Z

    const-string v1, "\u6536\u5230\u7ebf\u7a0b\u4e2d\u65ad\uff01\uff01"

    const/4 v2, 0x1

    if-eqz v0, :cond_0

    .line 3
    sget-object v0, Les/ff;->p:Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return v2

    .line 4
    :cond_0
    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Thread;->isInterrupted()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 5
    sget-object v0, Les/ff;->p:Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 6
    iput-boolean v2, p0, Les/ff;->m:Z

    return v2

    :cond_1
    const/4 v0, 0x0

    return v0
.end method

.method static synthetic h(Les/ff;)Z
    .locals 0

    .line 1
    invoke-direct {p0}, Les/ff;->h()Z

    move-result p0

    return p0
.end method

.method private i()V
    .locals 22

    move-object/from16 v1, p0

    .line 2
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v0

    const-wide/16 v2, 0x0

    .line 3
    iput-wide v2, v1, Les/ff;->f:J

    const/4 v4, 0x0

    .line 4
    iput v4, v1, Les/ff;->e:I

    .line 5
    :try_start_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v5

    .line 6
    iget-object v7, v1, Les/ff;->l:Ljava/lang/String;

    invoke-virtual {v0, v7}, Lcom/estrongs/fs/f;->n(Ljava/lang/String;)Ljava/util/List;

    move-result-object v7

    iput-object v7, v1, Les/ff;->i:Ljava/util/List;

    .line 7
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v7

    .line 8
    sget-object v9, Les/ff;->p:Ljava/lang/String;

    new-instance v10, Ljava/lang/StringBuilder;

    invoke-direct {v10}, Ljava/lang/StringBuilder;-><init>()V

    const-string v11, "load all image buckets ms:"

    invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sub-long/2addr v7, v5

    invoke-virtual {v10, v7, v8}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-static {v9, v7}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 9
    new-instance v7, Ljava/util/ArrayList;

    iget-object v8, v1, Les/ff;->i:Ljava/util/List;

    invoke-interface {v8}, Ljava/util/List;->size()I

    move-result v8

    invoke-direct {v7, v8}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v7, v1, Les/ff;->h:Ljava/util/List;

    .line 10
    new-instance v7, Ljava/util/concurrent/ConcurrentHashMap;

    invoke-direct {v7}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V

    iput-object v7, v1, Les/ff;->j:Ljava/util/concurrent/ConcurrentHashMap;

    .line 11
    new-instance v7, Ljava/util/concurrent/ConcurrentHashMap;

    invoke-direct {v7}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V

    iput-object v7, v1, Les/ff;->k:Ljava/util/concurrent/ConcurrentHashMap;

    .line 12
    iget-object v7, v1, Les/ff;->i:Ljava/util/List;

    invoke-interface {v7}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v7

    :goto_0
    invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z

    move-result v8

    if-eqz v8, :cond_5

    invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/estrongs/fs/g;

    .line 13
    invoke-direct/range {p0 .. p0}, Les/ff;->h()Z

    move-result v9

    if-eqz v9, :cond_0

    return-void

    :cond_0
    const/4 v9, 0x0

    .line 14
    invoke-virtual {v0, v8, v4, v9}, Lcom/estrongs/fs/f;->a(Lcom/estrongs/fs/g;ZLcom/estrongs/fs/h;)Ljava/util/List;

    move-result-object v9

    if-nez v9, :cond_1

    goto :goto_0

    .line 15
    :cond_1
    invoke-interface {v9}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v10

    move-wide v11, v2

    :goto_1
    invoke-interface {v10}, Ljava/util/Iterator;->hasNext()Z

    move-result v13

    if-eqz v13, :cond_4

    invoke-interface {v10}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lcom/estrongs/fs/g;

    .line 16
    invoke-direct/range {p0 .. p0}, Les/ff;->h()Z

    move-result v14

    if-eqz v14, :cond_2

    return-void

    .line 17
    :cond_2
    invoke-interface {v13}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v14

    .line 18
    iget-object v15, v1, Les/ff;->a:Les/yu;

    invoke-virtual {v15, v14}, Les/yu;->c(Ljava/lang/String;)Z

    move-result v14

    if-eqz v14, :cond_3

    goto :goto_1

    .line 19
    :cond_3
    move-object v14, v13

    check-cast v14, Les/b30;

    .line 20
    iget v15, v1, Les/ff;->e:I

    add-int/lit8 v15, v15, 0x1

    iput v15, v1, Les/ff;->e:I

    .line 21
    iget-wide v2, v1, Les/ff;->f:J

    invoke-interface {v13}, Lcom/estrongs/fs/g;->length()J

    move-result-wide v16

    add-long v2, v2, v16

    iput-wide v2, v1, Les/ff;->f:J

    .line 22
    invoke-interface {v13}, Lcom/estrongs/fs/g;->length()J

    move-result-wide v2

    add-long/2addr v11, v2

    .line 23
    new-instance v2, Les/fg;

    invoke-interface {v13}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v17

    invoke-interface {v13}, Lcom/estrongs/fs/g;->length()J

    move-result-wide v18

    invoke-interface {v13}, Lcom/estrongs/fs/g;->lastModified()J

    move-result-wide v20

    move-object/from16 v16, v2

    invoke-direct/range {v16 .. v21}, Les/fg;-><init>(Ljava/lang/String;JJ)V

    move-wide/from16 v16, v5

    .line 24
    invoke-virtual {v14}, Les/b30;->o()J

    move-result-wide v4

    invoke-virtual {v2, v4, v5}, Les/fg;->a(J)V

    .line 25
    invoke-virtual {v14}, Les/b30;->p()I

    move-result v4

    invoke-virtual {v2, v4}, Les/fg;->b(I)V

    .line 26
    invoke-virtual {v14}, Les/b30;->n()I

    move-result v4

    invoke-virtual {v2, v4}, Les/fg;->a(I)V

    .line 27
    iget-object v4, v1, Les/ff;->g:Ljava/util/List;

    invoke-interface {v4, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    move-wide/from16 v5, v16

    const-wide/16 v2, 0x0

    const/4 v4, 0x0

    goto :goto_1

    :cond_4
    move-wide/from16 v16, v5

    .line 28
    move-object v2, v8

    check-cast v2, Lcom/estrongs/fs/m;

    .line 29
    invoke-virtual {v2, v11, v12}, Lcom/estrongs/fs/m;->c(J)V

    .line 30
    new-instance v2, Les/cg;

    invoke-interface {v8}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v2, v4, v11, v12}, Les/cg;-><init>(Ljava/lang/String;J)V

    .line 31
    iget-object v4, v1, Les/ff;->h:Ljava/util/List;

    invoke-interface {v4, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 32
    iget-object v4, v1, Les/ff;->j:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v4, v2, v8}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 33
    iget-object v2, v1, Les/ff;->k:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v2, v8, v9}, Ljava/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move-wide/from16 v5, v16

    const-wide/16 v2, 0x0

    const/4 v4, 0x0

    goto/16 :goto_0

    :cond_5
    move-wide/from16 v16, v5

    .line 34
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    .line 35
    sget-object v0, Les/ff;->p:Ljava/lang/String;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    sub-long v2, v2, v16

    invoke-virtual {v4, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v2, "load all images ms @"

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, v1, Les/ff;->l:Ljava/lang/String;

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    :catch_0
    move-exception v0

    .line 36
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :goto_2
    return-void
.end method

.method static synthetic i(Les/ff;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Les/ff;->f()V

    return-void
.end method


# virtual methods
.method public a(I)Les/tf;
    .locals 8

    .line 8
    iget-object v0, p0, Les/ff;->b:[Les/nf;

    const/4 v1, 0x0

    aget-object v0, v0, v1

    check-cast v0, Les/rf;

    if-nez v0, :cond_0

    .line 9
    new-instance p1, Les/tf;

    invoke-direct {p1}, Les/tf;-><init>()V

    return-object p1

    .line 10
    :cond_0
    invoke-virtual {v0, p1}, Les/rf;->a(I)Les/nf$b;

    move-result-object p1

    .line 11
    iget v1, p1, Les/nf$b;->b:I

    if-nez v1, :cond_1

    .line 12
    new-instance p1, Les/tf;

    invoke-direct {p1}, Les/tf;-><init>()V

    return-object p1

    .line 13
    :cond_1
    new-instance v1, Ljava/util/ArrayList;

    iget-object v2, p1, Les/nf$b;->a:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V

    .line 14
    iget v2, p1, Les/nf$b;->b:I

    .line 15
    iget-wide v3, p1, Les/nf$b;->c:J

    .line 16
    monitor-enter v0

    .line 17
    :try_start_0
    iget-object p1, p1, Les/nf$b;->a:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    move-wide v4, v3

    move v3, v2

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_3

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/hg;

    .line 18
    invoke-interface {v2}, Les/eg;->a()Z

    move-result v6

    if-nez v6, :cond_2

    add-int/lit8 v3, v3, -0x1

    .line 19
    invoke-virtual {v2}, Les/hg;->c()J

    move-result-wide v6

    sub-long/2addr v4, v6

    goto :goto_0

    .line 20
    :cond_2
    invoke-interface {v2}, Les/eg;->b()Lcom/estrongs/fs/g;

    move-result-object v2

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 21
    :cond_3
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 22
    new-instance p1, Les/tf;

    const/4 v2, 0x0

    move-object v0, p1

    invoke-direct/range {v0 .. v5}, Les/tf;-><init>(Ljava/util/List;IIJ)V

    return-object p1

    :catchall_0
    move-exception p1

    .line 23
    :try_start_1
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_2

    :goto_1
    throw p1

    :goto_2
    goto :goto_1
.end method

.method public final a(Ljava/lang/String;)Les/tf;
    .locals 6

    .line 57
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 58
    new-instance p1, Les/dg;

    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    const/4 v2, 0x0

    const/4 v3, 0x0

    const-wide/16 v4, 0x0

    move-object v0, p1

    invoke-direct/range {v0 .. v5}, Les/dg;-><init>(Ljava/util/Map;IIJ)V

    return-object p1

    .line 59
    :cond_0
    :try_start_0
    iget-object p1, p0, Les/ff;->n:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {p1}, Ljava/util/concurrent/CountDownLatch;->await()V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 60
    invoke-virtual {p1}, Ljava/lang/InterruptedException;->printStackTrace()V

    .line 61
    :goto_0
    new-instance v1, Ljava/util/ArrayList;

    iget-object p1, p0, Les/ff;->i:Ljava/util/List;

    invoke-direct {v1, p1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    .line 62
    new-instance p1, Les/tf;

    const/4 v2, 0x0

    iget v3, p0, Les/ff;->e:I

    iget-wide v4, p0, Les/ff;->f:J

    move-object v0, p1

    invoke-direct/range {v0 .. v5}, Les/tf;-><init>(Ljava/util/List;IIJ)V

    return-object p1
.end method

.method public declared-synchronized a()V
    .locals 2

    monitor-enter p0

    .line 2
    :try_start_0
    sget-object v0, Les/ff;->p:Ljava/lang/String;

    const-string v1, "\u53d6\u6d88\u56fe\u7247\u6587\u4ef6\u5206\u6790\uff01\uff01"

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v0, 0x1

    .line 3
    iput-boolean v0, p0, Les/ff;->m:Z

    .line 4
    iget-object v0, p0, Les/ff;->d:Ljava/util/concurrent/ThreadPoolExecutor;

    if-eqz v0, :cond_0

    .line 5
    sget-object v0, Les/ff;->p:Ljava/lang/String;

    const-string v1, "analyze Executor shutdownNow!"

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 6
    iget-object v0, p0, Les/ff;->d:Ljava/util/concurrent/ThreadPoolExecutor;

    invoke-virtual {v0}, Ljava/util/concurrent/ThreadPoolExecutor;->shutdownNow()Ljava/util/List;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 7
    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final a(Lcom/estrongs/fs/g;)V
    .locals 1

    if-nez p1, :cond_0

    return-void

    .line 24
    :cond_0
    :try_start_0
    iget-object v0, p0, Les/ff;->n:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->await()V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 25
    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    .line 26
    :goto_0
    iget-object v0, p0, Les/ff;->l:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->v1(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, p0, Les/ff;->l:Ljava/lang/String;

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->Q1(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 27
    :cond_1
    iget-object v0, p0, Les/ff;->k:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v0, p1}, Ljava/util/concurrent/ConcurrentHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 28
    iget-object v0, p0, Les/ff;->i:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    :cond_2
    return-void
.end method

.method public final declared-synchronized a(Ljava/util/List;)V
    .locals 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Les/hg;",
            ">;)V"
        }
    .end annotation

    monitor-enter p0

    .line 29
    :try_start_0
    iget-object v0, p0, Les/ff;->n:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->await()V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception p1

    goto/16 :goto_8

    :catch_0
    move-exception v0

    .line 30
    :try_start_1
    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    .line 31
    :goto_0
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 32
    iget-object v1, p0, Les/ff;->b:[Les/nf;

    array-length v2, v1

    const/4 v3, 0x0

    :goto_1
    if-ge v3, v2, :cond_1

    aget-object v4, v1, v3

    if-nez v4, :cond_0

    goto :goto_2

    .line 33
    :cond_0
    invoke-virtual {v4, p1}, Les/nf;->a(Ljava/util/List;)Z

    :goto_2
    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    .line 34
    :cond_1
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_2
    :goto_3
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_a

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/hg;

    if-nez v1, :cond_3

    goto :goto_3

    .line 35
    :cond_3
    iget-object v2, p0, Les/ff;->g:Ljava/util/List;

    invoke-interface {v2, v1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    .line 36
    iget v2, p0, Les/ff;->e:I

    add-int/lit8 v2, v2, -0x1

    iput v2, p0, Les/ff;->e:I

    .line 37
    iget-wide v2, p0, Les/ff;->f:J

    invoke-virtual {v1}, Les/hg;->c()J

    move-result-wide v4

    sub-long/2addr v2, v4

    iput-wide v2, p0, Les/ff;->f:J

    .line 38
    :cond_4
    iget-object v2, p0, Les/ff;->j:Ljava/util/concurrent/ConcurrentHashMap;

    if-eqz v2, :cond_5

    .line 39
    iget-object v2, p0, Les/ff;->j:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v2, v1}, Ljava/util/concurrent/ConcurrentHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 40
    :cond_5
    invoke-interface {v1}, Les/eg;->getPath()Ljava/lang/String;

    move-result-object v1

    .line 41
    iget-object v2, p0, Les/ff;->k:Ljava/util/concurrent/ConcurrentHashMap;

    if-eqz v2, :cond_2

    .line 42
    iget-object v2, p0, Les/ff;->k:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v2}, Ljava/util/concurrent/ConcurrentHashMap;->keySet()Ljava/util/Set;

    move-result-object v2

    invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_6
    :goto_4
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_2

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/estrongs/fs/g;

    .line 43
    iget-object v4, p0, Les/ff;->k:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v4, v3}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/List;

    const/4 v4, 0x0

    .line 44
    invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v5

    :cond_7
    :goto_5
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v6

    if-eqz v6, :cond_9

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/estrongs/fs/g;

    if-eqz v6, :cond_7

    .line 45
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v7

    if-eqz v7, :cond_8

    goto :goto_5

    .line 46
    :cond_8
    invoke-interface {v6}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v7, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_7

    move-object v4, v6

    :cond_9
    if-eqz v4, :cond_6

    .line 47
    invoke-interface {v3, v4}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    goto :goto_4

    .line 48
    :cond_a
    iget-object p1, p0, Les/ff;->k:Ljava/util/concurrent/ConcurrentHashMap;

    if-eqz p1, :cond_d

    .line 49
    iget-object p1, p0, Les/ff;->k:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {p1}, Ljava/util/concurrent/ConcurrentHashMap;->keySet()Ljava/util/Set;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_b
    :goto_6
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_c

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/fs/g;

    .line 50
    iget-object v2, p0, Les/ff;->k:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v2, v1}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/List;

    if-eqz v2, :cond_b

    .line 51
    invoke-interface {v2}, Ljava/util/List;->isEmpty()Z

    move-result v2

    if-eqz v2, :cond_b

    .line 52
    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_6

    .line 53
    :cond_c
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_7
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_d

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/fs/g;

    .line 54
    iget-object v1, p0, Les/ff;->k:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v1, v0}, Ljava/util/concurrent/ConcurrentHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 55
    iget-object v1, p0, Les/ff;->i:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_7

    .line 56
    :cond_d
    monitor-exit p0

    return-void

    :goto_8
    monitor-exit p0

    goto :goto_a

    :goto_9
    throw p1

    :goto_a
    goto :goto_9
.end method

.method public b()Les/tf;
    .locals 11

    .line 2
    iget-object v0, p0, Les/ff;->b:[Les/nf;

    const/4 v1, 0x1

    aget-object v0, v0, v1

    check-cast v0, Les/gf;

    .line 3
    invoke-virtual {v0}, Les/gf;->d()Ljava/util/Map;

    move-result-object v0

    .line 4
    new-instance v2, Ljava/util/ArrayList;

    const/4 v1, 0x2

    invoke-direct {v2, v1}, Ljava/util/ArrayList;-><init>(I)V

    .line 5
    invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    const/4 v3, 0x0

    const-wide/16 v4, 0x0

    move-wide v5, v4

    const/4 v4, 0x0

    :cond_0
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_2

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/Map$Entry;

    .line 6
    invoke-interface {v3}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Les/e20;

    .line 7
    invoke-interface {v3}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/List;

    .line 8
    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v8

    add-int/2addr v4, v8

    .line 9
    invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :goto_1
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v8

    if-eqz v8, :cond_1

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Les/hg;

    .line 10
    invoke-virtual {v8}, Les/hg;->c()J

    move-result-wide v9

    add-long/2addr v5, v9

    .line 11
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    const-string v10, "image inside the path:"

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {v8}, Les/eg;->getPath()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v9, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v8, "===> package: "

    invoke-virtual {v9, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v8, v7, Les/e20;->p:Landroid/content/pm/ApplicationInfo;

    iget-object v8, v8, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v9, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    const-string v9, "lgf"

    invoke-static {v9, v8}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    .line 12
    :cond_1
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-ge v3, v1, :cond_0

    .line 13
    invoke-virtual {v2, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 14
    :cond_2
    new-instance v0, Les/tf;

    const/4 v3, 0x0

    move-object v1, v0

    invoke-direct/range {v1 .. v6}, Les/tf;-><init>(Ljava/util/List;IIJ)V

    return-object v0
.end method

.method public final declared-synchronized b(Ljava/lang/String;)Les/tf;
    .locals 7

    monitor-enter p0

    .line 15
    :try_start_0
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 16
    new-instance p1, Les/tf;

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    const/4 v3, 0x0

    const/4 v4, 0x0

    const-wide/16 v5, 0x0

    move-object v1, p1

    invoke-direct/range {v1 .. v6}, Les/tf;-><init>(Ljava/util/List;IIJ)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-object p1

    .line 17
    :cond_0
    :try_start_1
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->v1(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->Q1(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    :cond_1
    const-string p1, "gallery://local/buckets/"

    .line 18
    :cond_2
    iget-object v0, p0, Les/ff;->l:Ljava/lang/String;

    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-nez p1, :cond_3

    .line 19
    new-instance p1, Les/tf;

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    const/4 v2, 0x0

    const/4 v3, 0x0

    const-wide/16 v4, 0x0

    move-object v0, p1

    invoke-direct/range {v0 .. v5}, Les/tf;-><init>(Ljava/util/List;IIJ)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    monitor-exit p0

    return-object p1

    .line 20
    :cond_3
    :try_start_2
    new-instance v1, Ljava/util/ArrayList;

    const/4 p1, 0x2

    invoke-direct {v1, p1}, Ljava/util/ArrayList;-><init>(I)V

    .line 21
    iget-object v0, p0, Les/ff;->g:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_4
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_6

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/hg;

    .line 22
    invoke-interface {v2}, Les/eg;->a()Z

    move-result v3

    if-nez v3, :cond_5

    .line 23
    iget v3, p0, Les/ff;->e:I

    add-int/lit8 v3, v3, -0x1

    iput v3, p0, Les/ff;->e:I

    .line 24
    iget-wide v3, p0, Les/ff;->f:J

    invoke-virtual {v2}, Les/hg;->c()J

    move-result-wide v5

    sub-long/2addr v3, v5

    iput-wide v3, p0, Les/ff;->f:J

    goto :goto_0

    .line 25
    :cond_5
    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-ge v3, p1, :cond_4

    .line 26
    invoke-interface {v2}, Les/eg;->b()Lcom/estrongs/fs/g;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 27
    :cond_6
    new-instance p1, Les/tf;

    const/4 v2, 0x0

    iget v3, p0, Les/ff;->e:I

    iget-wide v4, p0, Les/ff;->f:J

    move-object v0, p1

    invoke-direct/range {v0 .. v5}, Les/tf;-><init>(Ljava/util/List;IIJ)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    monitor-exit p0

    return-object p1

    :catchall_0
    move-exception p1

    monitor-exit p0

    goto :goto_2

    :goto_1
    throw p1

    :goto_2
    goto :goto_1
.end method

.method public c()Les/jg;
    .locals 11

    .line 19
    :try_start_0
    iget-object v0, p0, Les/ff;->n:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->await()V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 20
    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    .line 21
    :goto_0
    iget-object v0, p0, Les/ff;->b:[Les/nf;

    const/4 v1, 0x0

    aget-object v0, v0, v1

    check-cast v0, Les/rf;

    .line 22
    invoke-virtual {v0}, Les/rf;->d()Ljava/util/List;

    move-result-object v2

    .line 23
    new-instance v4, Ljava/util/ArrayList;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v3

    invoke-direct {v4, v3}, Ljava/util/ArrayList;-><init>(I)V

    .line 24
    monitor-enter v0

    .line 25
    :try_start_1
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    const-wide/16 v5, 0x0

    move-wide v7, v5

    const/4 v6, 0x0

    :cond_0
    :goto_1
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_3

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Set;

    .line 26
    invoke-interface {v1}, Ljava/util/Set;->size()I

    move-result v3

    add-int/2addr v6, v3

    .line 27
    new-instance v3, Ljava/util/ArrayList;

    invoke-interface {v1}, Ljava/util/Set;->size()I

    move-result v5

    invoke-direct {v3, v5}, Ljava/util/ArrayList;-><init>(I)V

    .line 28
    invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_1
    :goto_2
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v5

    if-eqz v5, :cond_2

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Les/fg;

    .line 29
    invoke-virtual {v5}, Les/bg;->a()Z

    move-result v9

    if-eqz v9, :cond_1

    .line 30
    invoke-virtual {v5}, Les/hg;->c()J

    move-result-wide v9

    add-long/2addr v7, v9

    .line 31
    invoke-virtual {v5}, Les/fg;->b()Lcom/estrongs/fs/g;

    move-result-object v5

    invoke-interface {v3, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_2

    .line 32
    :cond_2
    invoke-interface {v3}, Ljava/util/List;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_0

    .line 33
    invoke-interface {v4, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 34
    :cond_3
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 35
    iget-object v0, p0, Les/ff;->o:Ljava/util/Comparator;

    invoke-static {v4, v0}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    .line 36
    new-instance v0, Les/jg;

    const/4 v5, 0x0

    move-object v3, v0

    invoke-direct/range {v3 .. v8}, Les/jg;-><init>(Ljava/util/List;IIJ)V

    return-object v0

    :catchall_0
    move-exception v1

    .line 37
    :try_start_2
    monitor-exit v0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_4

    :goto_3
    throw v1

    :goto_4
    goto :goto_3
.end method

.method public declared-synchronized c(Ljava/lang/String;)Les/wf;
    .locals 20

    move-object/from16 v1, p0

    monitor-enter p0

    .line 2
    :try_start_0
    new-instance v3, Ljava/util/HashMap;

    invoke-direct {v3}, Ljava/util/HashMap;-><init>()V

    .line 3
    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->v1(Ljava/lang/String;)Z

    move-result v0

    const-wide/16 v4, 0x0

    const/4 v2, 0x0

    if-nez v0, :cond_1

    invoke-static/range {p1 .. p1}, Lcom/estrongs/android/util/h0;->Q1(Ljava/lang/String;)Z

    move-result v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    move-wide v6, v4

    const/4 v5, 0x0

    goto/16 :goto_4

    .line 4
    :cond_1
    :goto_0
    :try_start_1
    iget-object v0, v1, Les/ff;->n:Ljava/util/concurrent/CountDownLatch;

    invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->await()V
    :try_end_1
    .catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_1

    :catch_0
    move-exception v0

    .line 5
    :try_start_2
    invoke-virtual {v0}, Ljava/lang/InterruptedException;->printStackTrace()V

    .line 6
    :goto_1
    iget-object v0, v1, Les/ff;->b:[Les/nf;

    const/4 v6, 0x1

    aget-object v0, v0, v6

    check-cast v0, Les/gf;

    .line 7
    invoke-virtual {v0}, Les/gf;->d()Ljava/util/Map;

    move-result-object v0

    .line 8
    invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    move-wide v7, v4

    const/4 v6, 0x0

    :goto_2
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v9

    if-eqz v9, :cond_5

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Ljava/util/Map$Entry;

    .line 9
    invoke-interface {v9}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Les/e20;

    .line 10
    invoke-interface {v9}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Ljava/util/List;

    .line 11
    new-instance v12, Ljava/util/LinkedList;

    invoke-direct {v12}, Ljava/util/LinkedList;-><init>()V

    .line 12
    invoke-interface {v9}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v9

    move-wide/from16 v18, v4

    const/16 v17, 0x0

    :cond_2
    :goto_3
    invoke-interface {v9}, Ljava/util/Iterator;->hasNext()Z

    move-result v11

    if-eqz v11, :cond_3

    invoke-interface {v9}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Les/hg;

    .line 13
    iget-object v13, v1, Les/ff;->j:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v13, v11}, Ljava/util/concurrent/ConcurrentHashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v13

    if-eqz v13, :cond_2

    add-int/lit8 v17, v17, 0x1

    .line 14
    invoke-virtual {v11}, Les/hg;->c()J

    move-result-wide v13

    add-long v18, v18, v13

    .line 15
    iget-object v13, v1, Les/ff;->j:Ljava/util/concurrent/ConcurrentHashMap;

    invoke-virtual {v13, v11}, Ljava/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v11

    invoke-interface {v12, v11}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_3

    .line 16
    :cond_3
    invoke-interface {v12}, Ljava/util/List;->isEmpty()Z

    move-result v9

    if-nez v9, :cond_4

    .line 17
    new-instance v9, Les/tf;

    const/4 v13, 0x0

    move-object v11, v9

    move/from16 v14, v17

    move-wide/from16 v15, v18

    invoke-direct/range {v11 .. v16}, Les/tf;-><init>(Ljava/util/List;IIJ)V

    invoke-interface {v3, v10, v9}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_4
    add-int v6, v6, v17

    add-long v7, v7, v18

    goto :goto_2

    :cond_5
    move v5, v6

    move-wide v6, v7

    .line 18
    :goto_4
    new-instance v0, Les/wf;

    const/4 v4, 0x0

    move-object v2, v0

    invoke-direct/range {v2 .. v7}, Les/wf;-><init>(Ljava/util/Map;IIJ)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    monitor-exit p0

    return-object v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    goto :goto_6

    :goto_5
    throw v0

    :goto_6
    goto :goto_5
.end method

.method public declared-synchronized d()V
    .locals 12

    monitor-enter p0

    .line 2
    :try_start_0
    sget-object v0, Les/ff;->p:Ljava/lang/String;

    const-string v1, "analyze files in the media library..."

    invoke-static {v0, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 3
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    .line 4
    new-instance v2, Ljava/util/concurrent/CountDownLatch;

    const/4 v3, 0x1

    invoke-direct {v2, v3}, Ljava/util/concurrent/CountDownLatch;-><init>(I)V

    iput-object v2, p0, Les/ff;->n:Ljava/util/concurrent/CountDownLatch;

    .line 5
    iget-object v2, p0, Les/ff;->l:Ljava/lang/String;

    invoke-direct {p0, v2}, Les/ff;->d(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_0

    .line 6
    invoke-direct {p0}, Les/ff;->f()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 7
    monitor-exit p0

    return-void

    :cond_0
    const/4 v2, 0x0

    .line 8
    :try_start_1
    iput-boolean v2, p0, Les/ff;->m:Z

    .line 9
    iget-object v2, p0, Les/ff;->b:[Les/nf;

    array-length v2, v2

    add-int/lit8 v6, v2, 0x1

    .line 10
    new-instance v10, Ljava/util/concurrent/ArrayBlockingQueue;

    invoke-direct {v10, v6}, Ljava/util/concurrent/ArrayBlockingQueue;-><init>(I)V

    .line 11
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2, v6}, Ljava/util/ArrayList;-><init>(I)V

    .line 12
    new-instance v3, Ljava/util/concurrent/ThreadPoolExecutor;

    const-wide/16 v7, 0x0

    sget-object v9, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    new-instance v11, Les/av;

    const-string v4, "Media Analyzer"

    invoke-direct {v11, v4}, Les/av;-><init>(Ljava/lang/String;)V

    move-object v4, v3

    move v5, v6

    invoke-direct/range {v4 .. v11}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V

    iput-object v3, p0, Les/ff;->d:Ljava/util/concurrent/ThreadPoolExecutor;

    .line 13
    new-instance v4, Les/ff$a;

    invoke-direct {v4, p0, v2, v0, v1}, Les/ff$a;-><init>(Les/ff;Ljava/util/ArrayList;J)V

    invoke-virtual {v3, v4}, Ljava/util/concurrent/ThreadPoolExecutor;->execute(Ljava/lang/Runnable;)V

    .line 14
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    .line 15
    sget-object v4, Les/ff;->p:Ljava/lang/String;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "\u56fe\u7247\u5206\u6790\u542f\u52a8Expired: "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sub-long/2addr v2, v0

    invoke-virtual {v5, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v0, " ms"

    invoke-virtual {v5, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v4, v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 16
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
